home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form frmMain
- BorderStyle = 4 'Fixed ToolWindow
- Caption = "Mci Command Interface"
- ClientHeight = 1740
- ClientLeft = 1050
- ClientTop = 2580
- ClientWidth = 6795
- ClipControls = 0 'False
- ForeColor = &H00C0C0C0&
- Height = 2115
- Icon = "frmMan.frx":0000
- Left = 990
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 116
- ScaleMode = 3 'Pixel
- ScaleWidth = 453
- Top = 2265
- Width = 6915
- Begin VB.CheckBox Check1
- Alignment = 1 'Right Justify
- Caption = "Stay On Top"
- Height = 225
- Left = 5250
- TabIndex = 11
- Top = 1380
- Width = 1335
- End
- Begin VB.TextBox txt
- BackColor = &H00C0C0C0&
- Height = 285
- Index = 3
- Left = 1620
- Locked = -1 'True
- TabIndex = 6
- Top = 900
- Width = 3405
- End
- Begin VB.CommandButton cmd1
- Caption = "Send"
- Height = 330
- Left = 180
- TabIndex = 3
- Top = 1320
- Width = 1200
- End
- Begin VB.TextBox txt
- Height = 285
- Index = 0
- Left = 1620
- TabIndex = 0
- Top = 180
- Width = 4965
- End
- Begin VB.TextBox txt
- BackColor = &H00C0C0C0&
- ForeColor = &H00000000&
- Height = 285
- Index = 1
- Left = 1620
- Locked = -1 'True
- TabIndex = 4
- Top = 540
- Width = 4965
- End
- Begin VB.OptionButton opt
- Caption = "MciSendString"
- Height = 195
- Index = 1
- Left = 3300
- TabIndex = 2
- Top = 1380
- Width = 1545
- End
- Begin VB.OptionButton opt
- Caption = "MciExecute"
- Height = 195
- Index = 0
- Left = 1620
- TabIndex = 1
- Top = 1380
- Value = -1 'True
- Width = 1605
- End
- Begin VB.TextBox txt
- BackColor = &H00C0C0C0&
- Height = 285
- Index = 2
- Left = 6060
- Locked = -1 'True
- TabIndex = 5
- Top = 930
- Width = 525
- End
- Begin VB.Label lb
- AutoSize = -1 'True
- BackStyle = 0 'Transparent
- Caption = "Send String "
- Height = 195
- Index = 0
- Left = 180
- TabIndex = 10
- Top = 270
- Width = 870
- End
- Begin VB.Label lb
- AutoSize = -1 'True
- BackStyle = 0 'Transparent
- Caption = "Return Message"
- Height = 195
- Index = 3
- Left = 180
- TabIndex = 9
- Top = 930
- Width = 1170
- End
- Begin VB.Label lb
- AutoSize = -1 'True
- BackStyle = 0 'Transparent
- Caption = "Ret Code"
- Height = 195
- Index = 2
- Left = 5280
- TabIndex = 8
- Top = 960
- Width = 675
- End
- Begin VB.Label lb
- AutoSize = -1 'True
- BackStyle = 0 'Transparent
- Caption = "Return Error String "
- Height = 195
- Index = 1
- Left = 180
- TabIndex = 7
- Top = 600
- Width = 1350
- End
- Attribute VB_Name = "frmMain"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub Check1_Click()
- 'Makes form stay on top or not depending on the _
- value of OnTop
- OnTop = Not OnTop 'Toggle the OnTop value
- 'Determine operating system and execute code
- #If Win16 Then
- If OnTop = True Then
- Call SetWindowPos(frmMain.hWnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOSIZE Or SWP_NOMOVE)
- Else
- Call SetWindowPos(frmMain.hWnd, HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOSIZE Or SWP_NOMOVE)
- End If
- #ElseIf Win32 Then
- If OnTop = True Then
- Call SetWindowPos(frmMain.hWnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOSIZE Or SWP_NOMOVE)
- Else
- Call SetWindowPos(frmMain.hWnd, HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOSIZE Or SWP_NOMOVE)
- End If
- #End If
- End Sub
- Private Sub cmd1_Click()
- 'Pass textbox text to MMSend
- MMSend (txt(0).Text)
- End Sub
- Private Sub Form_Load()
- 'Set intial value for variables
- SelOpt = 0
- OnTop = False
- End Sub
- Private Sub opt_Click(Index As Integer)
- 'Toggle SelOpt value
- Select Case Index
- Case 0
- SelOpt = 0
- Case 1
- SelOpt = 1
- End Select
- End Sub
-